package com.homework.test17;

public class Student {
    private String id;
    private String name;
    private String sex;
    private double height;
    private int age;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Student(String id, String name, String sex, double height, int age) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.height = height;
        this.age = age;
    }

    public Student() {
    }

    public void printOf() {
        System.out.println("编号：" + id + " 姓名：" + name + " 性别：" + sex + " 身高：" + height + " 年龄:" + age);
    }
}
